package com.silp.alertdialog;

import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.widget.SlidingDrawer;
import android.widget.TextView;
import android.widget.Toast;

public class Myprogress extends Activity {

	private ProgressDialog mProgressDialog;
	private ProgressDialog mProgressDialog1;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		TextView mTv = new TextView(this);
		mTv.setText("My progress");
		Toast.makeText(getApplicationContext(),(mTv).getText().toString(), 10).show();
		mProgressDialog = new ProgressDialog(this);
		mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
		mProgressDialog.setMessage("Loading...");
//		mProgressDialog.setCancelable(false);// Khong cho cancel
		mProgressDialog.incrementProgressBy(60);//Set so % hien thi 
//		mProgressDialog1.setCanceledOnTouchOutside(true);
		mProgressDialog.show();
		mProgressDialog1 = new ProgressDialog(Myprogress.this);
		mProgressDialog1=ProgressDialog.show(Myprogress.this, " ", "is Loading....");
		mProgressDialog1.setCanceledOnTouchOutside(true);
		mProgressDialog1.show();
		super.onCreate(savedInstanceState);
		
		
	}


}
